<%@ include file="../common/top.jsp"%>

<link rel="stylesheet" type="text/css" href="css/order.css">


<div class="table-container">
    <form action="confirmOrderForm" method="post">
    <table>
        <tr>
            <th colspan="2">Order<br>${sessionScope.order.orderDate}</th>
        </tr>
        <tr>
            <th colspan="2">Billing Address</th>
        </tr>
        <tr>
            <td>First name:</td>
            <td>${sessionScope.loginAccount.firstName}</td>
        </tr>
        <tr>
            <td>Last name:</td>
            <td>${sessionScope.loginAccount.lastName}</td>
        </tr>
        <tr>
            <td>Address1:</td>
            <td>${sessionScope.loginAccount.address1}</td>
        </tr>
        <tr>
            <td>Address2:</td>
            <td>${sessionScope.loginAccount.address2}</td>
        </tr>
        <tr>
            <td>City:</td>
            <td>${sessionScope.loginAccount.city}</td>
        </tr>
        <tr>
            <td>State:</td>
            <td>${sessionScope.loginAccount.state}</td>
        </tr>
        <tr>
            <td>Zip:</td>
            <td>${sessionScope.loginAccount.zip}</td>
        </tr>
        <tr>
            <td>Country:</td>
            <td>${sessionScope.loginAccount.country}</td>
        </tr>
        <tr>
            <th colspan="2">Shipping Address</th>
        </tr>
        <tr>
            <td>First name:</td>
            <td>${sessionScope.order.shipToFirstName}</td>
        </tr>
        <tr>
            <td>Last name:</td>
            <td>${sessionScope.order.shipToLastName}</td>
        </tr>
        <tr>
            <td>Address1:</td>
            <td>${sessionScope.order.shipAddress1}</td>
        </tr>
        <tr>
            <td>Address2:</td>
            <td>${sessionScope.order.shipAddress2}</td>
        </tr>
        <tr>
            <td>City:</td>
            <td>${sessionScope.order.shipCity}</td>
        </tr>
        <tr>
            <td>State:</td>
            <td>${sessionScope.order.shipState}</td>
        </tr>
        <tr>
            <td>Zip:</td>
            <td>${sessionScope.order.shipZip}</td>
        </tr>
        <tr>
            <td>Country:</td>
            <td>${sessionScope.order.shipCountry}</td>
        </tr>
    </table>
        <button type="submit" class="confirm-button">Confirm</button>
    </form>
</div>

<%@ include file="../common/bottom.jsp"%>